# # 处理Excel数据
#  import pandas as pd
# #
# df = pd.read_excel(r"C:\Users\Administrator\Desktop\123.xlsx")
# print(df)
#
# # 文件写到excel
# a1 = {'name': 'xiaohong', 'age': 20}
# a2 = {'name': 'xiaoliu', 'age': 21}
# a3 = {'name': 'xiaobai', 'age': 22}
# l = [a1, a2, a3]
# print(l)
# # 需要将列表变成dataframe格式
# df1 = pd.DataFrame(l)
# print(df1)
# # 使用pandas的函数to_excel()，index索引
# df1.to_excel('222.xlsx', index=False)

from docx import Document

doc = Document('2023年国务院政府工作报告.docx')
print(doc)
p = doc.paragraphs
print(p)
print(len(p))

for i in p:
    print(i.text)
